package com.softeem.iov.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 行程记录表
 * </p>
 *
 * @author softeem
 * @since 2023-09-19
 */
@Data
public class Trip implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 行程id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 行程开始地点(经纬度)
     */
    private String startplace;

    /**
     * 行程结束地点(经纬度)
     */
    private String endplace;

    /**
     * 行程开始时间
     */
    private LocalDateTime starttime;

    /**
     * 行程结束时间
     */
    private LocalDateTime endtime;

    /**
     * 持续时长(毫秒)
     */
    private Long duration;

    /**
     * 里程数(公里)
     */
    private Double mileage;

    /**
     * 行程能耗(油-nL/100km ,电-nkwh/100km)
     */
    private Double consume;

    /**
     * 用户汽车id
     */
    private Integer cid;


}
